package com.speily.web.filter;

import com.speily.web.http.Request;
import com.speily.web.http.Response;

import java.io.IOException;

/**
 * @Auther: SPL
 * @Date: 2019-07-03 16:02
 * @Description: 自定义Filter拦截器，作用于Servelt.service方法前
 */
public class MyFilter implements Filter{

    public void doFilter(Request request, Response response, FilterChain filterChain) throws IOException {
        System.out.println("test one before ---------");

        filterChain.doFilter(request, response);

        System.out.println("test one after -------");
    }
}
